import http from "@/api";

/**
 * @name 账号
 */
// 账号列表
export const accountListApi = () => {
  return http.get(`/account`, { loading: true });
};
// 新增账号
export const accountSaveApi = (params) => {
  return http.post(`/account`, params, { loading: true });
};
// 编辑账号
export const accountEditApi = (id,params) => {
  return http.put(`/account/` + id, params, { loading: true });
};
// 删除账号
export const accountDelApi = (id) => {
  return http.delete(`/account/` + id, {}, { loading: true });
};